var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    menuid:String, 
    originalname:String,
    mimetype: String,
    filename: String,
    path: String,
    size: String ,
    date:{ type: Date, default: Date.now }
});
schema.plugin(mongoosePaginate);

var unload = mongoose.model('upload',  schema);
module.exports=unload;